package com.chengzheng.crawler.spiderman.work;

import com.chengzheng.crawler.spiderman.pojo.Task;

/**
 * @author zhengcheng
 * @date 2018/1/30
 * @time 下午5:44
 * @email chengzhengzheng@meituan.com
 **/

public class WorkerResult {
    private Task task;

    private Object response;


    public WorkerResult(Task task, Object response) {
        this.task = task;
        this.response = response;
    }

    public Object getResponse() {
        return response;
    }

    public Task getTask() {
        return task;
    }


    @Override
    public String toString() {
        return "WorkerResult{" +
                "task=" + task +
                ", response=" + response +
                '}';
    }
}
